package com.hujifang.elasticsearch.model;

import java.io.Serializable;

/**
 * 搜索命中结果集合，对SearchHits的结果做了一些过滤
 * Created by Hurricane.Hu on 2015/8/14.
 */
public class EsSearchResult implements Serializable{
    private static final long serialVersionUID = 2423673030309959206L;
    /**
     * 总的命中数
     */
    private long totalHits;
    /**
     * 最高匹配score
     */
    private float maxScore;
    /**
     * 命中搜索结果集合
     */
    private  EsSearchHit[] hits;

    public long getTotalHits() {
        return totalHits;
    }

    public void setTotalHits(long totalHits) {
        this.totalHits = totalHits;
    }

    public float getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(float maxScore) {
        this.maxScore = maxScore;
    }

    public EsSearchHit[] getHits() {
        return hits;
    }

    public void setHits(EsSearchHit[] hits) {
        this.hits = hits;
    }
}
